package map.graph;

import java.util.LinkedList;

import com.taxi.server.carsearch.graph.Node;

public class Car {
	private Node node;
	private double time;
	private LinkedList<Node> way;

	public Car(Node n, double t, LinkedList<Node> w) {
		node = n;
		time = t;
		way = (LinkedList<Node>) w.clone();
	}

	public LinkedList<Node> getWay() {
		return way;
	}

	public Node getNode() {
		return node;
	}

	public void setNode(Node node) {
		this.node = node;
	}

	public double getTime() {
		return time;
	}

	public void setTime(double time) {
		this.time = time;
	}
}
